package com.zijin.service.user;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zijin.PageQureyDTO;
import com.zijin.dto.user.RoleDTO;
import com.zijin.entity.user.Role;
import com.zijin.result.PageResult;
import com.zijin.vo.user.RoleVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author JWei Xu
 * @since 2025-02-01
 */
public interface IRoleService extends IService<Role> {

    Set<String> getRoleName(Long id);

    Set<String> getRoleNameByUserId(Long id);

    Boolean addOne(RoleDTO dto);

    Boolean delOne(Long id);

    Boolean  editOne(Long id, RoleDTO dto);

    Role getRole(Long id);

    PageResult getPage(PageQureyDTO dto);

    List<RoleVo> getList(PageQureyDTO dto);
}
